//
//  CommonShare.swift
//  Screen
//
//  Created by Season02 on 9/30/16.
//  Copyright © 2016 alex.chih. All rights reserved.
//
import Foundation
import UIKit

open class CommonShare: NSObject
{
    //static let vPrifix:String = "http://m.media-plus.cn/p/video/sec/"
    
    //    @objc
    //    enum ShareType:Int
    //    {
    //        case ShareTypeQQ, ShareTypeQZone, ShareTypeWechat, ShareTypeWeibo
    //    }
    
    @objc
    enum ShareType:Int
    {
        case
        artic,
        video
    }
    
    @objc
    static var controller:UIViewController? = nil
    
    enum Result
    {
        case ok, failed
    }
    
    static func GenerateUrl(_ type:ShareType,eid:String) -> String
    {
        var prifix:String? = nil
        
        if type == .artic
        {
            prifix = "test";
        }
        else
        {
            prifix = "test";
        }
        
//        if type == .artic
//        {
//            prifix = APrifix;
//        }
//        else
//        {
//            prifix = VPrifix;
//        }
        
        return prifix! + eid
        
    }
    
    //    static func Share(type:Type) -> Void
    //    {
    //        switch type
    //        {
    //            case Type.QQ:
    //                ThirdPartQQ.shareToFriend()
    //
    //            default:
    //                return
    //        }
    //    }
    
    
    
}
